
var user = document.getElementById("user")
var toBook = document.getElementById("toBook")
var toBorrow = document.getElementById("toBorrow")
var add = document.getElementById("add")
var back = document.getElementById("back")
var toreader = document.getElementById("toreader")

user.addEventListener("click",function () {
    location.href = "index.html"
})
toBook.addEventListener("click",function () {
    location.href = "book.html"
})
toBorrow.addEventListener("click",function () {
    location.href = "borrow.html"
})
toreader.addEventListener("click",function () {
    location.href = "reader.html"
})
add.addEventListener("click",function () {
    location.href = "add.html"
})
back.addEventListener("click",function () {
    location.href = "login.html"
})